package cn.vin.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @Author: Wu Shenzhuang
 * @Date: 2019/5/28 20:14
 */
//@Service
public class TaskService {
    @Scheduled(cron = "0/2 * * * * ?")
    public void test01() throws InterruptedException {
        System.out.println("========test1开始" + System.currentTimeMillis());
        Thread.sleep(4000);
        System.out.println("=========test1结束" +  System.currentTimeMillis());
    }
}
